How to import attributes from other module?

Hi,
Is it possible to import attributes using dxl to current module from another module, where required attributes are present?
ashokanumula - Tue Nov 01 15:10:21 EDT 2011

Re: How to import attributes from other module?
SystemAdmin - Wed Nov 02 04:39:08 EDT 2011

For an example on how to copy attributes from one module to another see file lib\dxl\utils\copyops.inc under your DOORS installation directory.

  • Pekka Mäkinen - http://www.softqa.eu/

Re: How to import attributes from other module?
PatrickGuay - Wed Nov 02 10:58:00 EDT 2011

Try something like the following, however it is not totally adapted to what you want to do:

void dealWith(Object oParent) {
Object oChild
if(null(obj)) {
obj = create(extractModule)
put(mapping_skip, identifier obj "", identifier oChild "")
} else {
obj."Object Heading" = oChild."Object Heading" ""
obj."Object Text" = oChild."Object Text" ""
}

dealWith(oChild)
}
}

outlining on
level 1
Object o1
for o1 in origModule do {
Object oBase = o1 // the base object

dealWith(oBase)
}
...

This will basically isolate all objects under level 1 (could be any level you want) and recursively create the objects line by line for all attributes you deem worthy.
This is not tested as is since I cut out a lot of my stuff so try to work it out yourself. Sorry for crappy formatting.